home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _utilities / utilities / 001 / whereis / UnixLfix < prev    next >
Text File  |  1993-08-25  |  860b  |  22 lines

  1. whereis turned up a bug in UnixLib 3.6c of Hew Rogers,which
  2. is almost sure to be found in earlier versions:
  3.  
  4. the unixlib.src.c.strstr C-Source (strstr.c) must be changed in the
  5. following line:
  6.  
  7. while (s1 < e1) { if (!strncmp(s1,s2,l2)) return((char *)s1); s1++; }
  8.  
  9. with:
  10.  
  11. while (s1 <= e1) { if (!strncmp(s1,s2,l2)) return((char *)s1); s1++; }
  12.  
  13. explanation: without the <= , the last valid case (s1 reaches last valid
  14. position (e1) ) is not checked.
  15.  
  16. This archive includes the complete unixlib.src.c.strstr file , to replace
  17. the original one. You must rebuilt o.strstr in your unixlib
  18. (compile strstr.c to an object in src.o,then set CWD to ...unixlib.src,
  19.  then 'li o.strstr', Alias$li must be set by unixlib's !boot file).
  20. Note that bugfixes for unixlib are now held at the Stuttgart infoserver
  21. (info2.rus.uni-stuttgart.de see /pub/systems/acorn/FILES file).
  22.